package mapper;

import com.github.pagehelper.PageInfo;
import entity.Customer;
import entity.LayRequest;
import entity.Role;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @Author Administrator
 * @create 2020.06.17 下午 8:00
 */
public interface CustomerMapper {
     int insert(Customer customer);
     List<Customer> selectAll();
     Customer selectById(Integer id);

     int delete(Integer id);
     int update(Customer customer);

     List<Customer> selectByMap(Map<String,Object> map);
     List<Customer> selectByPage(Map<String,Object> params);

     List<Customer> selectWithRole(Map<String, Object> map);
     @Update("update t_admin set headpic=#{headpic} where id=#{id}")
     int updateHeadPic(Customer customer);

     int batchDelete(Integer[] ids);
}
